<?php
$Profile = Dracosys::getLoggedUser()->getTPerfil();
?>
<h2>Atribui&ccedil;&otilde;es do Usu&aacute;rio</h2>
<section id="Atri_permissoes">
    <?php
        if($Profile->hasActions()):
            foreach($Profile->getActions() as $Permissao): ?>
                <div class="Atri_permissao">
                    <?=$Permissao->getStAcao()?>
                </div>
                <div class="Atri_descricao">
                    <a href="#Acao<?=$Permissao->getIDAcao()?>" rel="tooltip">
                        <img src="<?=DRA_VIEW_URL?>images/descricao.png" alt="Descricao" class="Atri_img" />
                    </a>
                </div>
                <div id="Atri_descricao<?=$Permissao->getIDAcao()?>" class="hide">
                    <?php
                        if( $Permissao->hasDescription() ):
                            echo $Permissao->getStDescricao();
                        else:
                            echo 'Sem Descrição.';
                        endif;
                    ?>
                </div>
    <?php
            endforeach;
        endif;
    ?>
</section>
